<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Page  extends CI_Controller {
  private $pages = array('header',
                   'menu',
                   'content',
                   'footer'
                  );
  public function index(){
    foreach($this->pages as $page){
      $this->load->view($page);
    }
  }
}

?>
